package org.googlecode.lightning.search.segment;

import java.io.IOException;
import java.io.Serializable;

/**
 * 
 * @author daragon
 * 
 */
public interface IHolderMaker {

    /**
     * 
     * @param path
     *            where to hold
     * @return
     * @throws IOException
     */
    public abstract Holder hold(String path) throws IOException;

    /**
     * 
     * @param id
     * @param filename
     * @param content
     * @return
     * @throws IOException
     */
    public abstract Holder hold(Serializable id, String filename, byte[] content)
            throws IOException;
}